home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-03-16 | 1.9 KB | 56 lines | [TEXT/GEOL] |
- Item 8190465 16-March-90 03:43PST
-
- From: MADA2 MacApp Dev Assoc, Curtis Faith,IVC
-
- To: MACAPP.TECH$ MacApp Technical
-
- Sub: Printing Views in AdornPage
-
- Here is another printing question,
-
- I am trying to implement some special behavior in a PrintHandler.
-
- Specifically I would like to print a view in the AdornPage method. To further
- complicate matters I want to be able to print certain portions of the view in
- various pages depending on the page number and position.
-
- For example:
-
- Suppose I have a view that has an extent of 1000 h and 20 v,
-
- I would like to know how I could cause the left most 600 pixels of this view to
- be printed on one page at a 30,30 offset from the top left corner of the Ink.
- and the remaining 400 X 20 to be printed at the same location on the next page.
-
- This all needs to be done in adornPage.
-
- I cannot use a container view to enclose both the view that is being printed
- and my adorn View.
-
- For another example, I might have a view representing a logo. I want to be
- able to print it on the right side of odd pages at position 500,30 and on the
- left side of even pages at position 30, 30.
-
- I can't just use QuickDraw. I want to be able to do this with Views, even some
- that could contain subViews.
-
- Any hints? Where should I look for more information?
-
- I have read through most of TStdPrintHandler and though I have a general idea
- what is going on in most areas, there are some parts that I find particularly
- difficult to comprehend.
-
- My general impression is that TStdPrintHandler sets up the ClipRegion for the
- printer GrafPort to be the area of the view that is to be drawn for a given
- page.
-
- One point that I miss is how it controls the relation between page coordinates
- and view coordinates.
-
- Anyone understand this stuff intimately?
-
- Thanks in Advance,
-
- Curtis
-
-